package com.usian.common.model.paper;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Transient;

/**
 * @projectName: day05_mohongwei_parent
 * @package: com.jiyun.common.model
 * @className: Paper
 * @author: 莫洪维
 * @email: 1204315800@qq.com
 * @description: TODO
 * @date: 2023/8/8 10:36
 */
@Data
@ToString
@TableName(value = "test_paper")
public class Paper {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField(value = "cover")
    private String cover;
    @TableField(value = "paper_name")
    private String paperName;
    @TableField(value = "paper_status")
    private String paperStatus;
    @TableField(value = "paper_sort")
    private String paperSort;
    @TableField(value = "paper_type_id")
    private Long paperTypeId;
    @TableField(value = "is_delete")
    private Integer isDelete;

    //标签ID
    @Transient
    @TableField(exist = false)
    private String labelIds;
}
